{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftColS">  
                    	{include file="new/box-navigation.tpl"}                	
                    </div>
                    <div class="rightColS">
                        <div class="midColS dottedRight">
                        	<div class="boxDetail">
                            	<div class="headerTitle">
                                    <h3><a href="{$refer}" onclick="history.go(-1); return false;" class="bBack"><strong>Quay lại</strong></a></h3>
                               	</div>
                                <div class="detailItem">
                                	<h2>{$row.title}</h2>                                	
                                	{if $row.image != ""}
                                		<p align="center">{image path=$row.image type=5 alt=$new.title|escape}</p>
                                    {/if}
                                	{$row.content}
                                </div>
                                <div class="secAction">
                                    <ul class="stat">
                                        <li class="firstChild">
                                            <span class="nLevel"><a href="{if $AppUI->id > 0}{$smarty.const.HOST_VFRIEND}new/lplus?newsid={$row.newid}&amp;token={$row.newid|secret:$smarty.const.SE_NEWS_PLEVEL_ID}{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}">Điểm hùng biện</a>&nbsp;(<strong>{$row.tlnews|number_format:"0":",":"."}</strong>)</span>
                                        </li>
                                        {if $AppUI->id == $row.userid && $AppUI->id > 0}
                                            <li><span class="iEdit"><a href="{link_edit_news newsid=$row.newid title=$row.title}">Sửa</a></span></li>
                                            <li><span class="iDelete"><a href="javascript:deleteNews({$row.newid},'{$row.newid|secret:"newsDel"}');">Xóa</a></span></li>
                                       	{else}
                                        	{if $row.statuses != 1}
                                        		<li><span class="iReport"><a href="{if $AppUI->id > 0}javascript:report(0,{$row.newid},4);{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}">Báo vi phạm</a></span></li>
                                            {/if}
                                        {/if}
                                        <li>
                                        	{if $intCheckFollow}
                                            	<a class="nReadCan" href="{if $AppUI->id > 0}{$smarty.const.HOST_VFRIEND}new/canfollow?newsid={$row.newid}&amp;token={$row.newid|secret:$smarty.const.SE_NEWS_FOLLOW_CANCEL}{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}">Tạm dừng theo dõi</a>
                                        	{else}
                                            	<span class="nRead"><a href="{if $AppUI->id > 0}{$smarty.const.HOST_VFRIEND}new/follow?newsid={$row.newid}&amp;token={$row.newid|secret:$smarty.const.SE_NEWS_FOLLOW}{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}">Theo dõi bản tin</a></span>
                                           	{/if}
                                       	</li>
                                        <li><span class="iTime">{$row.postdate|date_format:"%H:%M %d/%m/%Y"}</span></li>
                                    </ul>
                                    {if $AppUI->id > 0 && $AppUI->id != $row.userid}
                                    	<a href="{if $AppUI->id > 0}javascript:likeNews({$row.newid});{else}{$smarty.const.LINK_INDEX_LOGIN}{/if}"><img src="{$smarty.const.HOST_STATICS}img/btn/like.jpg" alt="{$smarty.const.DOMAIN}: like bài viết {$row.title|escape} của {$row.userid|ouser}" width="73" height="26" border="0" /></a>
                                    {/if}
                                </div>
                            </div>	
                        </div>
                        <div class="boxExt">
                        	<div class="extItem">
                            	{include file="new/box-poster.tpl"}
                                {include file="new/box-info.tpl"}
                                {include file="new/box-relation.tpl"}
                            </div>
                        </div>
                   	</div>
                    <div class="boxComment" id="nComment">						
                    	{include file="new/box-comment.tpl"}
                    </div>
                    <div class="boxComment">
                        {if $AppUI->id > 0}
                            <div class="formCmt" id="formCmt">
                                <form method="post" name="frmComment" id="frmComment" action="">
                                    <label>Ý kiến của bạn:</label>
                                    <input type="hidden" name="pnewsid" id="pnewsid" value="{$row.newid}" />
                                    {"pcontent"|fck:"":"CmtNews":"630":"200px"}
                                    <input type="submit" value="Gửi bình luận" class="btn rFloat" name="send"/>
                                </form>
                            </div>
                            <div id="loading" style="display:none;">
                                <p align="center"><img src="{$smarty.const.HOST_STATICS}img/bg/loading-bar.gif" alt="loading" width="88" height="7" border="0" /></p>
                                <p align="center">Đang xử lý gửi bình luận của bạn. Vui lòng chờ trong giây lát.</p>
                                <p>&nbsp;</p>
                            </div>
                        {else}
                            <div class="notContent">Hãy <a href="{$smarty.const.LINK_INDEX_LOGIN}">đăng nhập</a> để gửi lời bình nhé.</div>
                        {/if}
                     </div>
                </div>
            </div>
        </div>
    </div>
{include file="common/footer.tpl"}
